package com.qfedu.service;

import com.qfedu.pojo.MyProduct;
import com.qfedu.pojo.Product;

import java.math.BigDecimal;
import java.util.List;

public interface ProductService {

    List<MyProduct> findMyProduct(String idcode);

    List<Product> findAllProducts();

    Product findProductById(int id);

    int payProduct(String idcode ,int pid,BigDecimal pum, BigDecimal mon);

    MyProduct findMyProductByOnly(int id);

    int backProduct(String idcode, Integer id, BigDecimal mon, int j,int leftNum);

    BigDecimal backAllProductsPrice(String idcode);
}
